<template>
  <div class="rightTop">
    <div class="headerMaintitle">
      <img class="topPic" src="../assets/rightBottom3.png" alt="" />
      <div class="headerText">标题1</div>
    </div>
    <div class="tempo">
      <template v-for="(item, i) in countList">
        <div :key="i">
          <div class="title">
            <div class="text">{{ item.name }}</div>
          </div>
          <div class="tempoBottom">
            <img
              class="tempoBottomImg"
              src="../assets/tempoBottom.png"
              alt=""
            />
            <div class="num">{{ item.resultCount }}</div>
          </div>
        </div>
      </template>
    </div>
  </div>
</template>
<script>
import "swiper/css/swiper.min.css";

export default {
  name: "RightTop",
  props: {},
  data() {
    return {
      countList: [
        { name: "水质在线监测站房", resultCount: 15 },
        { name: "刷卡排污系统", resultCount: 15 },
        { name: "超声波多普勒流量计", resultCount: 70 },
        { name: "提升泵站", resultCount: 15 },
        { name: "河道监测设施", resultCount: 3 },
        { name: "超声波液位计", resultCount: 70 },
      ],
    };
  },
  computed: {},
  watch: {},
  methods: {},
  beforeCreate() {},
  created() {},
  beforeMount() {},
  mounted() {},
  updated() {},

  activated() {},
  deactivated() {},
  beforeDestroy() {},
  destroyed() {},
};
</script>
<style lang="less" scoped>
.rightTop {
  position: relative;
  .tempo {
    display: flex;
    padding: 16px 20px;
    flex-wrap: wrap;
    > div {
      width: 33%;
      margin-bottom: 20px;
    }
    .title {
      display: flex;
      margin-bottom: 10px;
      .img {
        height: 36px;
        width: 72px;
        background-image: url("../assets/tempoIcon.png");
        text-align: center;
        line-height: 36px;
        font-size: 22px;
        color: #ffffff;
      }
      .text {
        width: 100%;
        height: 34px;
        // background-image: url("../assets/tempoText.png");
        // margin-left: -11px;
        font-size: 20px;
        color: #ffffff;
        line-height: 34px;
      }
    }
    .tempoBottom {
      position: relative;
      .num {
        left: 0;
        right: 0;
        top: 9px;
        width: 52px;
        font-weight: bold;
        font-size: 32px;
        line-height: 37px;
        position: absolute;
        text-align: center;
        width: 100%;
        color: #00feff;
      }
    }
  }
}
@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}
.tempoBottomImg {
  animation: blink 3s infinite;
}
</style>
